package com.kingmed.kmss.common.dto.api.base.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 对外通用入参DTO-list类接口
 */

@Data
@EqualsAndHashCode(callSuper = false)
public class BaseReqListDTO {

    @ApiModelProperty(value = "每页条数", example = "25")
    private Long pageSize = 25L;

    @ApiModelProperty(value = "当前页码", example = "1")
    private Long pageNo = 1L;

    @ApiModelProperty(value = "创建时间", example = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "最后更新时间-开始", example = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "最后更新时间-截止", example = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTimeEnd;

}
